class MyException extends Exception{
    MyException(){
		super("dddd");
	}
}
public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int n1=10;
		int n2=2;
		/*try
		{
			System.out.print(n1/n2);
		}catch(Exception e){
			System.out.println("错误");
			e.printStackTrace();
		}finally{
			System.out.println("错误");
		}*/
		try {
			if(n2==0|n2==1){
				throw new MyException();
			}
			int r=n1/n2;
			System.out.println("互除湿" +r);
		}catch(Exception e){
			System.out.println(e.getMessage());
		}
		
	}
